win32: Fix tilt from Wintab devices
authorAndrew Chadwick <a.t.chadwick@gmail.com>
Sat, 19 Nov 2016 18:34:29 +0000 (18:34 +0000)
committerIgnacio Casal Quinteiro <icq@gnome.org>
Tue, 22 Nov 2016 10:21:06 +0000 (11:21 +0100)
commit9e3bd03d3ec1de295d2fb2e2eb7499b4d4851859
tree447903d5a942e16a19eb6dab0158761aca1706b4
parent17fe2288e80a3a78222f53575548ba4e26a6a042
win32: Fix tilt from Wintab devices

Move the orientation sanity-checks into the packet decode func.
Rationale: the packet handling func may otherwise read beyond the end of
device->last_axis_data.

Also expand them to cope with my test Huion's weird reporting.

Also correct the azimuth angle to align with GDK's presentation.

Most importantly, fix annoying comment typo.

https://bugzilla.gnome.org/show_bug.cgi?id=774265
gdk/win32/gdkdevicemanager-win32.c